'use strict';

module.exports = (router, controller) => {
  router.get('query_tasks', '/tasks', controller.task.index);
  router.get('query_tasks', '/tasks/:id', controller.task.show);
  router.post('create_tasks', '/tasks', controller.task.create);
  router.put('edit_tasks', '/tasks/:id', controller.task.update);
  router.delete('delete_tasks', '/tasks/:id', controller.task.destroy);
};
